package com.li.springbootproject.controller.rabbitmq;

import com.li.springbootproject.service.rabbitmq.RabbitMqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 8/11/2022 8:50 AM
 */
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@RestController
@RequestMapping("/rabbitmq")
public class RabbitMqController {

    @Autowired
    private RabbitMqService rabbitMqService;

    @RequestMapping("/testone")
    public String testOne() {
        return rabbitMqService.testOne();
    }

    @RequestMapping("/testtwo")
    public String testTwo() {
        return rabbitMqService.testTwo();
    }

    @RequestMapping("/testthree")
    public String testThree() {
        return rabbitMqService.testThree();
    }

}
